# @Author   :   hany
# @Time      :  2021/3/10

from basic.UIParent import UIParent
from basic.utils.asserts import asserts
from commen.page.ann.bsPage import bsPage
from commen.page.ann.myPage import myPage

class BsCase(UIParent):
    @classmethod
    def test_01bsIndex(self):
        '''政务首页页面校验'''
        myPage.loginByStatu()
        bsPage.clickBsBtn()
        bsText = bsPage.ifBsIndex()
        asserts.true(bsText, "政务首页页面校验")
    """ @classmethod
        def test_02bsGuide(self):
            '''办事指南列表校验'''

            bsPage.clickBsBtn()
            sleep(3)
            bsPage.clickBsGuide()
            dataList = bsPage.getGuideData()
            r = []
            asserts.not_equal(r, dataList, "办事指南列表校验")
    """
    # @classmethod
    # def test_03bsCollect(self):
    #     '''个人办事我的收藏页面校验'''
    #     myPage.loginByStatu()
    #     bsPage.clickBsBtn()
    #     bsPage.clickBsCollect()
    #     collectText = bsPage.getBsCollect()
    #     asserts.true(collectText, "个人办事我的收藏页面校验")

    # @classmethod
    # def test_04bsCollect(self):
    #     '''热门办事更多页面校验'''
    #     myPage.loginByStatu()
    #     bsPage.clickBsBtn()
    #     bsPage.clickHotBs()
    #     hotText = bsPage.getHotBs()
    #     asserts.true(hotText, "热门办事更多页面校验")